﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Navigation;
using System.Collections.ObjectModel;

namespace WoWGRA
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainWindow : Window
	{
		public MainWindow()
		{
			this.InitializeComponent();

			// Insert code required on object creation below this point.
		}
        public BossWindow Window2;
        public static string Bosslabel;
        public static string[] strArray;
        public static bool? Hcheck = false;
        public static string instance = string.Empty;
        

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Bosslabel = InstanceBox.Text;
            strArray = new string[listBox1.SelectedItems.Count];
            listBox1.SelectedItems.CopyTo(strArray, 0);
            Hcheck = checkBox2.IsChecked;
            instance = InstanceBox.Text;
            Bosslabel = InstanceBox.Text;
            BossWindow wind = new BossWindow();
            wind.Owner = this;
            wind.Show();
            
            //strArray = new string[15];
           
            

        }

        private void checkBox1_Checked(object sender, RoutedEventArgs e)
        {
            this.checkBox2.IsChecked = false;
        }

        private void checkBox2_Checked(object sender, RoutedEventArgs e)
        {
            this.checkBox1.IsChecked = false;
        }

        private void InstanceBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            listBox1.Items.Clear();
            
            

            foreach (ComboBoxItem item in e.AddedItems)
            {
                if (string.Equals(item.Content, "Naxxramas"))
                {
                    
                    listBox1.Items.Add("Anub'Rekhan");
                    listBox1.Items.Add("Grand Widow Faerlina");
                    listBox1.Items.Add("Maexxna");
                    listBox1.Items.Add("Noth the Plaguebringer");
                    listBox1.Items.Add("Heigan the Unclean");
                    listBox1.Items.Add("Loatheb");
                    listBox1.Items.Add("Instructor Razuvious");
                    listBox1.Items.Add("Gothik the Harvester");
                    listBox1.Items.Add("The Four Horsemen");
                    listBox1.Items.Add("Patchwerk");
                    listBox1.Items.Add("Grobbulus");
                    listBox1.Items.Add("Gluth");
                    listBox1.Items.Add("Thaddius");
                    listBox1.Items.Add("Sapphiron");
                    listBox1.Items.Add("Kel'Thuzad");
                    
                    

                }
                else if (string.Equals(item.Content, "Ulduar"))
                {
                    Bosslabel = item.Content.ToString();
                    listBox1.Items.Add("Flame Leviathan");
                    listBox1.Items.Add("XT-002 Deconstructor");
                    listBox1.Items.Add("Ignis the Furnace Master");
                    listBox1.Items.Add("Razorscale"); 
                    listBox1.Items.Add("Kologarn");
                    listBox1.Items.Add("Auriaya");
                    listBox1.Items.Add("Iron Council");
                    listBox1.Items.Add("Thorim");
                    listBox1.Items.Add("Freya");
                    listBox1.Items.Add("Hodir");
                    listBox1.Items.Add("Mimiron");
                    listBox1.Items.Add("General Vezax");
                    listBox1.Items.Add("Yogg-Saron");
                    listBox1.Items.Add("Algalon the Observer");
                }
                else if (string.Equals(item.Content, "Crusaders' Coliseum"))
                {
                    Bosslabel = item.Content.ToString();
                    listBox1.Items.Add("Northrend Beasts");
                    listBox1.Items.Add("Lord Jaraxxus");
                    listBox1.Items.Add("Faction Champions");
                    listBox1.Items.Add("Twin Val'kyr");
                    listBox1.Items.Add("Anub'arak");
                }

            }

        }
        
	}
    //public class BossGroup
    //{
    //    public BossGroup(int id, string instance, string name)
    //    {
    //        m_ID = id;
    //        m_Name = name;
    //        m_Instance = instance;
    //    }

    //    private int m_ID;
    //    public int ID
    //    {
    //        get { return m_ID; }
    //    }

    //    private string m_Instance;
    //    public string Instance
    //    {
    //        get { return m_Instance; }
    //    }

    //    private string m_Name;
    //    public string Name
    //    {
    //        get { return m_Name; }
    //    }


    //    public static Collection<BossGroup> AllGroups
    //    {
    //        get
    //        {
    //            if (m_AllGroups == null)
    //            {
    //                m_AllGroups = new Collection<BossGroup>();
    //                m_AllGroups.Add(new BossGroup(1, "Ulduar", "Flame Leviathan"));
    //                m_AllGroups.Add(new BossGroup(2, "Ulduar", "XT-002 Deconstructor"));
    //                m_AllGroups.Add(new BossGroup(3, "Ulduar", "Ignis"));
    //                m_AllGroups.Add(new BossGroup(4, "Ulduar", "Razorscale"));
    //                m_AllGroups.Add(new BossGroup(5, "Ulduar", "Kologarn"));
    //                m_AllGroups.Add(new BossGroup(6, "Ulduar", "Auriaya"));
    //            }

    //            return m_AllGroups;
    //        }
    //    }

    //    private static Collection<BossGroup> m_AllGroups;
    //}
}